package cn.com.nes.mybatis.agent.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

/**
 * <p>
 * 抖音用户关系关联表
 * </p>
 *
 * @author nes
 * @since 2022-08-25
 */
@TableName("user_douyin_relation")
public class UserDouyinRelation extends Model<UserDouyinRelation> {

    private static final long serialVersionUID = 1L;

    /**
     * 自增ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 抖音用户唯一标识
     */
    @TableField("open_id")
    private String openId;
    /**
     * 粉丝/关注用户唯一标识
     */
    @TableField("fan_open_id")
    private String fanOpenId;



    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public String getFanOpenId() {
        return fanOpenId;
    }

    public void setFanOpenId(String fanOpenId) {
        this.fanOpenId = fanOpenId;
    }

    public static final String ID = "id";

    public static final String OPEN_ID = "open_id";

    public static final String FAN_OPEN_ID = "fan_open_id";

    public static final String FOLLOW_OPEN_ID = "follow_open_id";

    public static final String TYPE = "type";

    @Override
    public Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "UserDouyinRelation{" +
        ", id=" + id +
        ", openId=" + openId +
        ", fanOpenId=" + fanOpenId +
        "}";
    }
}
